package com.housekeeping.housekeeping.advertisingmanagement.service;/*
 * @author  pyh
 * @date  2021/1/18 0018 下午 9:39
 * @version 1.0
 * @since JDK1.8_241
 */

import com.housekeeping.housekeeping.advertisingmanagement.entity.AdMessages;
import com.housekeeping.housekeeping.advertisingmanagement.utils.Page;

import java.sql.SQLException;
import java.util.List;

public interface AdMessagesService {
    //保存数据
    int saveAdMessages(AdMessages adMessages);
    //分页查询分信息   page：页数  size：数据总条数
    Page<AdMessages> list(int page,int size) throws SQLException;

    //通过id查询分类的详细信息
    AdMessages findCate(int id);
    //添加分类信息
    void add(AdMessages adMessages);
    //通过id删除分类信息
    int del(int id);
    //修改
    AdMessages update(int id);
    //通过广告名称查询广告表
    List<AdMessages> getAdMessagesList(String name) throws SQLException;

}
